package com.wangjiyuan.giftshuo.ui.fragment.home;

import com.wangjiyuan.giftshuo.base.IBaseModel;
import com.wangjiyuan.giftshuo.base.IBasePresenter;
import com.wangjiyuan.giftshuo.base.IBaseView;
import com.wangjiyuan.giftshuo.bean.search.HotBean;

import java.util.List;

import rx.Observable;

/**
 * Created by wjy on 2016/11/16.
 */

public class NavContract {
    public interface NavModel extends IBaseModel {
        /**
         * 网络获取热词
         *
         * @return 返回观察者对象
         */
        Observable<HotBean> getSearchHot();
    }

    public interface NavPresenter extends IBasePresenter {
        /**
         * 控制网络的数据加载和控件的数据加载
         */
        void getHotWord();
    }

    public interface NavView extends IBaseView {
        /**
         * 点击搜索时的事件
         *
         * @param searchhot 搜索热词
         */
        void search(List<String> searchhot);

        /**
         * 点击闹钟图标的事件
         */
        void alarm();

        /**
         * 点击箭头时的事件
         */
        void index();
    }
}
